home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / SVGALIB-.{2E / ET4000 / CARDEX.W32 < prev    next >
Text File  |  1999-09-17  |  11KB  |  317 lines

  1.  
  2. /*
  3.    This is for a Cardex ET4000/W32, with a high-end monitor (it uses
  4.    58 kHz horizontal sync for 1024x768 non-int at 70 Hz).
  5.    --HH
  6. */
  7.  
  8. /*
  9.    ( File generated by tseng3.exe )
  10.  
  11. tseng3 v1.2, Copyright (C) 1993  Tommy Frandsen, Harm Hanemaayer
  12. and Hartmut Schirmer
  13.  
  14. Permission is granted to any individual or institution to use, copy, or
  15. redistribute this executable so long as it is not modified and that it is
  16. not sold for profit.
  17.  
  18. LIKE ANYTHING ELSE THAT'S FREE, TSENG3 IS PROVIDED AS IS AND COMES WITH
  19. NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL
  20. THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF
  21. THIS SOFTWARE.
  22. */
  23.  
  24. /* Music 15/16/24 bit dac (AT&T compatible) detected */
  25. #define DAC_TYPE 9
  26.  
  27. #define CLOCK_VALUES {    \
  28.     /* 0 */ 50350,    \
  29.     /* 1 */ 56644,    \
  30.     /* 2 */ 65293,    \
  31.     /* 3 */ 72364,    \
  32.     /* 4 */ 80429,    \
  33.     /* 5 */ 90155,    \
  34.     /* 6 */ 63300,    \
  35.     /* 7 */ 75379    \
  36.     }
  37.  
  38. /* VESA HiColor mode 0x10D -- 320x200x32K */
  39. /* Video timing:    Vertical frequency   : 69.8Hz
  40.             Horizontal frequency : 31.3KHz  */
  41. static unsigned char g320x200x32K_regs[73] = {
  42.   0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x41,0x00,0x00,
  43.   0x00,0x00,0x00,0x00,0x9C,0x8E,0x8F,0x50,0x60,0x96,0xB9,0xAB,
  44.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  45.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  46.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  47.   0x03,0x01,0x0F,0x00,0x0E,
  48.   0x63,
  49.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xFC,0x00,0x00,
  50.   0x80
  51. };
  52.  
  53. /* VESA HiColor mode 0x10E -- 320x200x64K */
  54. #define g320x200x64K_regs g320x200x32K_regs
  55.  
  56. /* ET4000 TrueColor BIOS mode 0x13 -- 320x200x16M : NOT SUPPORTED */
  57. #define g320x200x16M_regs DISABLE_MODE
  58.  
  59. /* VESA mode 0x101 -- 640x480x256 */
  60. /* Video timing:    Vertical frequency   : 59.7Hz
  61.             Horizontal frequency : 31.3KHz  */
  62. static unsigned char g640x480x256_regs[73] = {
  63.   0x5F,0x4F,0x50,0x82,0x54,0x80,0x0B,0x3E,0x00,0x40,0x00,0x00,
  64.   0x00,0x00,0x00,0x00,0xEA,0x8C,0xDF,0x50,0x60,0xE7,0x04,0xAB,
  65.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  66.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  67.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  68.   0x03,0x01,0x0F,0x00,0x0E,
  69.   0xE3,
  70.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xFC,0x00,0x00,
  71.   0x00
  72. };
  73.  
  74. /* VESA HiColor mode 0x110 -- 640x480x32K */
  75. /* Video timing:    Vertical frequency   : 59.7Hz
  76.             Horizontal frequency : 31.3KHz  */
  77. static unsigned char g640x480x32K_regs[73] = {
  78.   0xC3,0x9F,0xA1,0x85,0xA7,0x1F,0x0B,0x3E,0x00,0x40,0x00,0x00,
  79.   0x00,0x00,0x00,0x00,0xEA,0x8C,0xDF,0xA0,0x60,0xE7,0x04,0xAB,
  80.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  81.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  82.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  83.   0x03,0x01,0x0F,0x00,0x0E,
  84.   0xE3,
  85.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  86.   0x80
  87. };
  88.  
  89. /* VESA HiColor mode 0x111 -- 640x480x64K */
  90. #define g640x480x64K_regs g640x480x32K_regs
  91.  
  92. /* VESA TrueColor mode 0x112 -- 640x480x16M */
  93. /* Video timing:    Vertical frequency   : 59.6Hz
  94.             Horizontal frequency : 31.3KHz  */
  95. static unsigned char g640x480x16M_regs[73] = {
  96.   0x27,0xEF,0xF2,0x88,0xF8,0x98,0x0B,0x3E,0x00,0x40,0x00,0x00,
  97.   0x00,0x00,0x00,0x00,0xEA,0x0C,0xDF,0xF0,0x60,0xE7,0x04,0xAB,
  98.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  99.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  100.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  101.   0x03,0x01,0x0F,0x00,0x0E,
  102.   0xEF,
  103.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x01,0xBC,0x00,0x00,
  104.   0x80
  105. };
  106.  
  107. /* VESA mode 0x102 -- 800x600x16 */
  108. /* Video timing:    Vertical frequency   : 72.4Hz
  109.             Horizontal frequency : 48.2KHz  */
  110. static unsigned char g800x600x16_regs[73] = {
  111.   0x7D,0x63,0x63,0x81,0x6D,0x1C,0x98,0xF0,0x00,0x60,0x00,0x00,
  112.   0x00,0x00,0x00,0x00,0x7C,0x82,0x57,0x32,0x00,0x57,0x99,0xC3,
  113.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  114.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  115.   0x00,0x0F,0x00,0x00,0x00,0x00,0x05,0x0F,0xFF,
  116.   0x03,0x01,0x0F,0x00,0x06,
  117.   0x23,
  118.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  119.   0x00
  120. };
  121.  
  122. /* VESA mode 0x103 -- 800x600x256 */
  123. /* Video timing:    Vertical frequency   : 72.4Hz
  124.             Horizontal frequency : 48.2KHz  */
  125. static unsigned char g800x600x256_regs[73] = {
  126.   0x7D,0x63,0x64,0x80,0x6D,0x1C,0x98,0xF0,0x00,0x60,0x00,0x00,
  127.   0x00,0x00,0x00,0x00,0x7C,0x82,0x57,0x64,0x60,0x5D,0x93,0xAB,
  128.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  129.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  130.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  131.   0x03,0x01,0x0F,0x00,0x0E,
  132.   0x23,
  133.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  134.   0x00
  135. };
  136.  
  137. /* VESA HiColor mode 0x113 -- 800x600x32K */
  138. /* Video timing:    Vertical frequency   : 60.8Hz
  139.             Horizontal frequency : 38.5KHz  */
  140. static unsigned char g800x600x32K_regs[73] = {
  141.   0xFF,0xC7,0xC9,0x81,0xD1,0x11,0x77,0xF0,0x00,0x60,0x00,0x00,
  142.   0x00,0x00,0x00,0x00,0x5D,0x8F,0x57,0xC8,0x60,0x5B,0x74,0xAB,
  143.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  144.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  145.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  146.   0x03,0x01,0x0F,0x00,0x0E,
  147.   0xE3,
  148.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  149.   0x80
  150. };
  151.  
  152. /* VESA HiColor mode 0x114 -- 800x600x64K */
  153. #define g800x600x64K_regs g800x600x32K_regs
  154.  
  155. /* ET4000 TrueColor BIOS mode 0x30 -- 800x600x16M : NOT SUPPORTED */
  156.  
  157. /* VESA mode 0x104 -- 1024x768x16 */
  158. /* Video timing:    Vertical frequency   : 71.8Hz
  159.             Horizontal frequency : 57.8KHz  */
  160. static unsigned char g1024x768x16_regs[73] = {
  161.   0xA8,0x7F,0x7F,0x8C,0x87,0x98,0x24,0xF5,0x00,0x60,0x00,0x00,
  162.   0x00,0x00,0x00,0x00,0x02,0x88,0xFF,0x40,0x00,0xFF,0x25,0xC3,
  163.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  164.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  165.   0x00,0x0F,0x00,0x00,0x00,0x00,0x05,0x0F,0xFF,
  166.   0x03,0x01,0x0F,0x00,0x06,
  167.   0xE3,
  168.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  169.   0x00
  170. };
  171.  
  172. /* VESA mode 0x105 -- 1024x768x256 */
  173. /* Video timing:    Vertical frequency   : 71.8Hz
  174.             Horizontal frequency : 57.8KHz  */
  175. static unsigned char g1024x768x256_regs[73] = {
  176.   0xA8,0x7F,0x7F,0x8C,0x87,0x98,0x24,0xF5,0x00,0x60,0x00,0x00,
  177.   0x00,0x00,0x00,0x00,0x02,0x88,0xFF,0x80,0x60,0xFF,0x25,0xAB,
  178.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  179.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  180.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  181.   0x03,0x01,0x0F,0x00,0x0E,
  182.   0xE3,
  183.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  184.   0x00
  185. };
  186.  
  187. /* ET4000 HiColor BIOS mode 0x38 -- 1024x768x32K : NOT SUPPORTED */
  188.  
  189. /* ET4000 HiColor BIOS mode 0x38 -- 1024x768x64K : NOT SUPPORTED */
  190.  
  191. /* ET4000 TrueColor BIOS mode 0x38 -- 1024x768x16M : NOT SUPPORTED */
  192.  
  193. /* VESA mode 0x106 -- 1280x1024x16 */
  194. /* Video timing:    Vertical frequency   : 43.5Hz (interlaced)
  195.             Horizontal frequency : 48.1KHz  */
  196. static unsigned char g1280x1024x16_regs[73] = {
  197.   0xCB,0x9F,0xA0,0x8E,0xA9,0x04,0x4F,0x52,0x00,0x40,0x00,0x00,
  198.   0x00,0x00,0x00,0x00,0x11,0x89,0xFF,0x50,0x00,0x09,0x46,0xC3,
  199.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  200.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  201.   0x00,0x0F,0x00,0x00,0x00,0x00,0x05,0x0F,0xFF,
  202.   0x03,0x01,0x0F,0x00,0x06,
  203.   0x23,
  204.   0x1C,0x00,0x28,0x00,0x0A,0x9B,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  205.   0x00
  206. };
  207.  
  208. /* VESA mode 0x107 -- 1280x1024x256 : NOT SUPPORTED */
  209.  
  210. /* VESA HiColor mode 0x119 -- 1280x1024x32K : NOT SUPPORTED */
  211.  
  212. /* VESA HiColor mode 0x11A -- 1280x1024x64K : NOT SUPPORTED */
  213.  
  214. /* VESA TrueColor mode 0x11B -- 1280x1024x16M : NOT SUPPORTED */
  215.  
  216. /* --- ET4000 specific modes */
  217. #ifdef _DYNAMIC_ONLY_
  218.  
  219. /* ET4000 BIOS mode 0x2D -- 640x350x256 */
  220. /* Video timing:    Vertical frequency   : 69.8Hz
  221.             Horizontal frequency : 31.3KHz  */
  222. static unsigned char g640x350x256_regs[73] = {
  223.   0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x40,0x00,0x00,
  224.   0x00,0x00,0x00,0x00,0x83,0x85,0x5D,0x50,0x60,0x63,0xBA,0xAB,
  225.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  226.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  227.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  228.   0x03,0x01,0x0F,0x00,0x0E,
  229.   0xA3,
  230.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xFC,0x00,0x00,
  231.   0x00
  232. };
  233.  
  234. /* ET4000 HiColor BIOS mode 0x2D -- 640x350x32K */
  235. /* Video timing:    Vertical frequency   : 69.8Hz
  236.             Horizontal frequency : 31.3KHz  */
  237. static unsigned char g640x350x32K_regs[73] = {
  238.   0xC3,0x9F,0xA1,0x85,0xA7,0x1F,0xBF,0x1F,0x00,0x40,0x00,0x00,
  239.   0x00,0x00,0x00,0x00,0x83,0x85,0x5D,0xA0,0x60,0x63,0xBA,0xAB,
  240.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  241.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  242.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  243.   0x03,0x01,0x0F,0x00,0x0E,
  244.   0xA3,
  245.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  246.   0x80
  247. };
  248.  
  249. /* ET4000 HiColor BIOS mode 0x2D -- 640x350x64K */
  250. #define g640x350x64K_regs g640x350x32K_regs
  251.  
  252. /* ET4000 TrueColor BIOS mode 0x2D -- 640x350x16M */
  253. /* Video timing:    Vertical frequency   : 69.6Hz
  254.             Horizontal frequency : 31.3KHz  */
  255. static unsigned char g640x350x16M_regs[73] = {
  256.   0x27,0xEF,0xF2,0x88,0xF8,0x98,0xBF,0x1F,0x00,0x40,0x00,0x00,
  257.   0x00,0x00,0x00,0x00,0x83,0x05,0x5D,0xF0,0x60,0x63,0xBA,0xAB,
  258.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  259.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  260.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  261.   0x03,0x01,0x0F,0x00,0x0E,
  262.   0xAF,
  263.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x01,0xBC,0x00,0x00,
  264.   0x80
  265. };
  266.  
  267. /* VESA mode 0x100 -- 640x400x256 */
  268. /* Video timing:    Vertical frequency   : 69.8Hz
  269.             Horizontal frequency : 31.3KHz  */
  270. static unsigned char g640x400x256_regs[73] = {
  271.   0x5F,0x4F,0x50,0x82,0x54,0x80,0xBF,0x1F,0x00,0x40,0x00,0x00,
  272.   0x00,0x00,0x00,0x00,0x9C,0x8E,0x8F,0x50,0x60,0x96,0xB9,0xAB,
  273.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  274.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  275.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  276.   0x03,0x01,0x0F,0x00,0x0E,
  277.   0x63,
  278.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xFC,0x00,0x00,
  279.   0x00
  280. };
  281.  
  282. /* ET4000 HiColor BIOS mode 0x2F -- 640x400x32K */
  283. /* Video timing:    Vertical frequency   : 69.8Hz
  284.             Horizontal frequency : 31.3KHz  */
  285. static unsigned char g640x400x32K_regs[73] = {
  286.   0xC3,0x9F,0xA1,0x85,0xA7,0x1F,0xBF,0x1F,0x00,0x40,0x00,0x00,
  287.   0x00,0x00,0x00,0x00,0x9C,0x8E,0x8F,0xA0,0x60,0x96,0xB9,0xAB,
  288.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  289.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  290.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  291.   0x03,0x01,0x0F,0x00,0x0E,
  292.   0x63,
  293.   0x1C,0x00,0x28,0x00,0x08,0x00,0x2B,0x0F,0x00,0xBC,0x00,0x00,
  294.   0x80
  295. };
  296.  
  297. /* ET4000 HiColor BIOS mode 0x2F -- 640x400x64K */
  298. #define g640x400x64K_regs g640x400x32K_regs
  299.  
  300. /* ET4000 TrueColor BIOS mode 0x2F -- 640x400x16M */
  301. /* Video timing:    Vertical frequency   : 69.6Hz
  302.             Horizontal frequency : 31.3KHz  */
  303. static unsigned char g640x400x16M_regs[73] = {
  304.   0x27,0xEF,0xF2,0x88,0xF8,0x98,0xBF,0x1F,0x00,0x40,0x00,0x00,
  305.   0x00,0x00,0x00,0x00,0x9C,0x0E,0x8F,0xF0,0x60,0x96,0xB9,0xAB,
  306.   0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,
  307.   0x0C,0x0D,0x0E,0x0F,0x01,0x00,0x0F,0x00,0x00,
  308.   0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0F,0xFF,
  309.   0x03,0x01,0x0F,0x00,0x0E,
  310.   0x6F,
  311.   0x1C,0x00,0x28,0x00,0x0A,0x00,0x2B,0x0F,0x01,0xBC,0x00,0x00,
  312.   0x80
  313. };
  314.  
  315. #endif /* defined(_DYNAMIC_ONLY_ALL_) */
  316.  
  317.